package com.qing.deep_in.springboot.chapter4.proxy;

import java.lang.reflect.Method;

/**
 * 执行动作对象
 *
 * @author guoqf
 * @date 2021/8/20 13:49
 */
public class Invocation {

    private Object target;

    private Method method;

    private Object[] params;

    public Invocation(Object target, Method method, Object[] params) {
        this.target = target;
        this.method = method;
        this.params = params;
    }

    public Object getTarget() {
        return target;
    }

    public void setTarget(Object target) {
        this.target = target;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }
}
